package basic.com.liz.learn.design.factory;

public class FactoryTest
{
    
    public static void main(String[] args)
    {
        // 普通工厂模式
        SenderFactory factory = new SenderFactory();
        Sender s = factory.produce("mail");
        if (null != s)
        {
            s.send();
        }
        
        // 静态工厂方法模式
        Sender ss = StaticSenderFacotry.sendMail();
        ss.send();
    }
    
}
